package com.exonline.listener;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;

/**
 * @desc : 监听Httpsession域的创建于销毁的监听器HttpSessionListener
 * @author :jjr
 */
@WebListener
public class HttpSessionListener implements javax.servlet.http.HttpSessionListener {

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        System.out.println("Session创建"+se);
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {
        System.out.println("Session销毁"+se);
    }
}
